Write-Host "🚀 启动CORS代理服务器..." -ForegroundColor Green
Write-Host ""
Write-Host "📋 请确保已经安装了依赖包" -ForegroundColor Yellow
Write-Host "💡 如果没有安装，请先运行: npm install" -ForegroundColor Yellow
Write-Host ""
Write-Host "🔧 正在启动代理服务器..." -ForegroundColor Cyan
Write-Host "📍 服务器地址: http://localhost:3000" -ForegroundColor White
Write-Host "🌐 代理路径: /proxy/" -ForegroundColor White
Write-Host ""

try {
    node proxy-server.js
} catch {
    Write-Host "❌ 启动失败: $_" -ForegroundColor Red
    Write-Host "💡 请检查是否已安装Node.js和依赖包" -ForegroundColor Yellow
}

Read-Host "按回车键退出" 